package sockettest;

import java.io.IOException;
import java.net.Socket;

/**
 * 用户端类
 *
 * @author Luka
 * @date 2021/06/05 20:16
 **/
public class Client {
    private Socket socket;
    public Client() {
        System.out.println("正在连接服务器...");
        try {
            socket = new Socket("localhost",8088);
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.out.println("服务器连接成功...");
    }

    public void start(){

    }

    public static void main(String[] args) {
        Client client = new Client();
        client.start();

    }
}